package com.bdqn.Practice1.sjlx1.pojo;

public class Student {

    private String name; //姓名
    private String text; //说话

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }


    public Student(){

    }
    public Student(String name, String text) {
        this.name = name;
        this.text = text;
    }
    public void  print(){
        System.out.println(name+":"+text);
    }
}
